home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 777 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1020 b 

  1. Path: EU.net!sun4nl!xs4all!usenet
  2. From: martijnl@xs4all.nl (Martijn Lievaart)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Beginner Question..How do I allocate arrays larger than 64K?
  5. Date: 7 Jan 1996 01:17:50 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4cn6vu$he7@news.xs4all.nl>
  8. References: <4cjfo4$igp@ixnews8.ix.netcom.com>
  9. NNTP-Posting-Host: mas01-09.dial.xs4all.nl
  10. X-Newsreader: WinVN 0.99.6
  11.  
  12. In article <4cjfo4$igp@ixnews8.ix.netcom.com>, jsmithjr@ix.netcom.co says...
  13. >
  14. >Have Borlandc. Can I allocate arrays larger than 64K? I have to use 16
  15. >bit compiler to deliver product for Air Force systems. Or, do I have to
  16. >build memory manger to handle multiple segments? 
  17.  
  18. Using Borland, use smart huges (default huge model). Slow but does the trick. 
  19. Other compilers probably don't support this.
  20. If the size of the elements in the array are a power of two, there is no 
  21. problem with the dumb huge model and it's mucho faster. Maintenance nightmare 
  22. waiting to happen though.
  23.  
  24. Hope this helps,
  25. Martijn
  26.  
  27.